{include file="public/header" /}
<body>
    <header class="all-header">
        <p class="all-header-item">
            <i class="layui-icon layui-icon-left" onclick="window.history.back(-1)"></i>
        </p>
        <p class="all-header-item">案件列表</p>
    </header>
    <ul class="cs-box">
        {volist name="result" id="vo"}
        <li class="cs-box-item" onclick="anjian({$vo.id},{$vo.status})">
            <div class="cs-box-iinner">
                <h3>{$vo.bname}</h3>
                <h3>{$vo.title}</h3>
            </div>
            <div class="cs-box-iinner">
                <div class="cs-box-iinner-item">
                    <p>
                        <span>管辖法院：{$vo.court}</span>
                    </p>
                    <p>案件时间：{$vo.create_at|mb_substr=0,10,'utf-8'}</p>
                </div>
                <div class="cs-box-iinner-item">
                    标的额：
                    <span class="color-red">{$vo.money}万元</span>
                </div>
            </div>
        </li>
        <div class="shop-btn bg-yellow" onclick="window.location.href=' {:url(\'submit_case/index\')}?id={$vo.id}'"><a class="color-white" href="javascript:;">提交案例</a></div>
        {/volist}
    </ul>
</body>
<script type="text/javascript">
    function anjian(id,status) {
        if(status == 2){
            window.location.href="{:url('case_progress/index')}?id="+id;
        }else{
            window.location.href="{:url('succsess_tip/index')}";
        }
    };
</script>
</html>